package ui.widget;

import java.awt.Cursor;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import javax.swing.JButton;

public class CommonStyleBtn extends JButton {

	protected boolean isEnter = false;

	public CommonStyleBtn() {
		setBorderPainted(false);
		setFocusPainted(false);
		setContentAreaFilled(false);
		addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				isEnter = true;
				setCursor(new Cursor(Cursor.HAND_CURSOR));
				repaint();
			}

			@Override
			public void mouseExited(MouseEvent e) {
				isEnter = false;
				repaint();
			}
		});
	}
}
